package com.ocom.srvpaccess.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.access.EntityMjWhiteInfo;

import java.util.List;


public interface WhiteInfoService extends IService<EntityMjWhiteInfo> {

    //list_delete=mj_white_info表中area_id=areaNo、state=1的最大id值
    public EntityMjWhiteInfo selectMaxId(Long companyId, Long areaId);

    /**
     *检查是否有新的删除操作
     *
     * @return*/
    public List<EntityMjWhiteInfo> selectDeleteWhiteInfo(Long companyId, Long areaId, Long listDelete, Integer listLimit);

    /**
     *检查是否有新的增加操作
     *
     * @return*/
    public List<EntityMjWhiteInfo> selectAddWhiteInfo(Long companyId, Long areaId, Long listAdd, Integer listLimit);

    //从门禁白名单mj_white_info再查找一次有没有新的白名单：
    public List<EntityMjWhiteInfo> selectWhiteInfo(Long companyId, Long areaId, Long listAdd, Long listDelete);
}
